﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Li.Contracts.OutputDto
{
    /// <summary>
    /// 返回结果
    /// </summary>
    [Serializable]
    public class ResultReponse
    {
        public ResultReponse(bool RequestStatus, string RequestMsg,object ResultData)
        {
            this.RequestStatus = RequestStatus;
            this.RequestMsg = RequestMsg;
            this.ResultData = ResultData;
        }
        /// <summary>
        /// 请求结果状态（T成功F失败）
        /// </summary>
        public bool RequestStatus { get; set; }
        /// <summary>
        /// 请求结果说明内容（失败内容提示）
        /// </summary>
        public string RequestMsg { get; set; }
        /// <summary>
        /// 请求结果数据
        /// </summary>
        public object ResultData { get; set; } 

    }
    /// <summary>
    /// 返回分页结果
    /// </summary>
    [Serializable]
    public class PageReultReponse : ResultReponse
    {
        public PageReultReponse(bool RequestStatus, string RequestMsg, object ResultData,int pageNum,int CountNum) : base(RequestStatus, RequestMsg, ResultData)
        {
            this.PageNum = pageNum;
            this.CountNum = CountNum;
        }

        /// <summary>
        /// 分页总数
        /// </summary>
        public int PageNum { get; set; }
        /// <summary>
        /// 数据总数
        /// </summary>
        public int CountNum { get; set; }
    }
}
